package com.jie.utility;

public class GoodsConstants {

    public static final String MAPPING_IEMPLLATE=
            "{\n" +
                    "  \"settings\": {\n" +
                    "  \"analysis\": {\n" +

                    "  \"analyzer\": {\n" +

                    "  \"my_analyzer\": {\n" +

                    "  \"tokenizer\": \"ik_max_word\",\n" +
                    "  \"filter\": \"py\"\n" +

                    "      },\n" +
                    "  \"completion_analyzer\": {\n" +

                    "  \"tokenizer\": \"ik_smart\",\n" +

                    "  \"filter\": \"py\"\n" +
                    "      }\n" +

                    "      },\n" +

                    "  \"filter\": {\n" +

                    "  \"py\": {\n" +

                    "  \"type\": \"pinyin\",\n" +

                    "  \"keep_full_pinyin\": false,\n" +

                    "   \"keep_joined_full_pinyin\": true,\n" +

                    "   \"keep_original\": true,\n" +

            "   \"limit_first_letter_length\": 16,\n" +

            "   \"remove_duplicated_term\": true,\n" +

            "   \"none_chinese_pinyin_tokenize\": false\n" +

            "      }\n" +

            "      }\n" +

            "      }\n" +

            "      },\n" +
            "  \"mappings\": {\n" +
            "    \"properties\": {\n" +
            "      \"goodsId\":{\n" +
            "        \"type\": \"keyword\"\n" +
            "      },\n" +
            "      \"goodsName\":{\n" +
            "        \"type\": \"text\",\n" +
            "        \"analyzer\": \"my_analyzer\",\n" +
            "        \"search_analyzer\": \"ik_smart\"\n" +
            "      },\n" +
            "      \"goodsPrice\":{\n" +
            "        \"type\": \"double\"\n" +
            "      },\n" +
            "      \"star\":{\n" +
            "        \"type\": \"integer\"\n" +
            "      },\n" +
            "      \"goodsWeight\":{\n" +
            "        \"type\": \"double\",\n" +
            "        \"index\": false\n" +
            "      },\n" +
            "      \"quantitySold\":{\n" +
            "        \"type\": \"double\"\n" +
            "      },\n" +
                    "      \"goodsNumber\":{\n" +
            "        \"type\": \"integer\",\n" +
            "         \"index\": false\n" +
            "      },\n" +
            "       \"goodsState\":{\n" +
            "        \"type\": \"text\"\n" +
            "      },\n" +
            "      \"goodsCat\":{\n" +
            "        \"type\": \"keyword\"\n" +
            "      },\n" +
            "      \"pics\":{\n" +
            "        \"type\": \"text\",\n" +
            "         \"index\": false\n" +
            "      },\n" +
            "      \"detailPics\":{\n" +
            "        \"type\": \"text\",\n" +
            "         \"index\": false\n" +
            "      },\n" +
            "      \"goodsIntroduce\":{\n" +
            "        \"type\": \"text\",\n" +
            "         \"index\": false\n" +
            "      },\n" +
            "      \"manyAttrs\":{\n" +
            "        \"type\": \"object\",\n" +
            "         \"properties\": {\n" +
            "           \"id\":{\n" +
            "             \"type\": \"keyword\",\n" +
            "              \"index\": false\n" +
            "            },\n" +
            "             \"attrId\":{\n" +
            "             \"type\": \"keyword\",\n" +
            "              \"index\": false\n" +
            "            },\n" +
            "            \"attrName\":{\n" +
            "            \"type\": \"text\",\n" +
            "              \"index\": false\n" +
            "      },\n" +
            "      \"attrVals\":{\n" +
            "            \"type\": \"text\",\n" +
            "              \"index\": false\n" +
            "      },\n" +
            "      \"addPrice\":{\n" +
            "            \"type\": \"text\",\n" +
            "              \"index\": false\n" +
            "      },\n" +
            "      \"manyPics\":{\n" +
            "            \"type\": \"text\",\n" +
            "              \"index\": false\n" +
            "      },\n" +
            "      \"isMany\":{\n" +
            "            \"type\": \"integer\",\n" +
            "              \"index\": false\n" +
            "      }, \n" +
            "      \"goodsId\":{\n" +
            "             \"type\": \"keyword\",\n" +
            "              \"index\": false\n" +
            "            },\n" +
            "        \"checkeds\":{\n" +
            "            \"type\": \"text\",\n" +
            "              \"index\": false\n" +
            "      }\n" +
            "         }\n" +
            "      },\n" +
            "     \"onlyAttrs\":{\n" +
            "        \"type\": \"object\",\n" +
            "         \"properties\": {\n" +
            "           \"id\":{\n" +
            "             \"type\": \"keyword\",\n" +
            "              \"index\": false\n" +
            "            },\n" +
            "             \"attrId\":{\n" +
            "             \"type\": \"keyword\",\n" +
            "              \"index\": false\n" +
            "            },\n" +
            "            \"attrName\":{\n" +
            "            \"type\": \"text\",\n" +
            "              \"index\": false\n" +
            "      },\n" +
            "      \"attrVals\":{\n" +
            "            \"type\": \"text\",\n" +
            "              \"index\": false\n" +
            "      },\n" +
            "      \"addPrice\":{\n" +
            "            \"type\": \"text\",\n" +
            "              \"index\": false\n" +
            "      },\n" +
            "      \"manyPics\":{\n" +
            "            \"type\": \"text\",\n" +
            "              \"index\": false\n" +
            "      },\n" +
            "      \"isMany\":{\n" +
            "            \"type\": \"integer\",\n" +
            "              \"index\": false\n" +
            "      }, \n" +
            "      \"goodsId\":{\n" +
            "             \"type\": \"keyword\",\n" +
            "              \"index\": false\n" +
            "            },\n" +
            "        \"checkeds\":{\n" +
            "            \"type\": \"text\",\n" +
            "              \"index\": false\n" +
            "      }\n" +
            "         }\n" +
            "      }, \n" +
            "      \"createAdminId\":{\n" +
            "            \"type\": \"integer\",\n" +
            "            \"index\": false\n" +
            "      },\n" +
            "      \"suggestion\":{\n" +
            "            \"type\": \"completion\",\n" +
            "            \"analyzer\": \"completion_analyzer\"\n" +
            "      }\n" +
            "    }\n" +
            "  }\n" +
            "}"
          ;
}
